AWS System Administration by Mike Ryan & Federico Lucifredi
Author:Mike Ryan & Federico Lucifredi
Language: eng
Format: epub
Publisher: O'Reilly Media, Inc.
Published: 2018-08-15T04:00:00+00:00
Example 5-7. Nginx Puppet module
class myblog::mynginx { class { "nginx": } nginx::resource::upstream { "myblog_app": ensure => present, members => [ 'localhost:8000', ] } nginx::resource::vhost { "blog.example.com": ensure => enable, listen_options => "default", proxy => "http://myblog_app" } }
Similar to the myblog::supervisor class, this class installs the Nginx package and writes the configuration file describing our desired Nginx setup. In this case, a single Nginx virtual host is created. This virtual host will proxy all traffic to the myblog_app proxy, which is running on port 8000.
Because we already have a class named nginx in the Nginx module, we can’t call our class myblog::nginx. Instead, we call it myblog::mynginx to prevent a naming collision.
Example 5-7 should be saved to puppet/modules/myblog/manifests/mynginx.pp.
The final piece of the puzzle is the myblog::web class, shown in Example 5-8.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7811)
Grails in Action by Glen Smith Peter Ledbrook(7724)
Azure Containers Explained by Wesley Haakman & Richard Hooper(6901)
Configuring Windows Server Hybrid Advanced Services Exam Ref AZ-801 by Chris Gill(6896)
Running Windows Containers on AWS by Marcio Morales(6428)
Microsoft 365 Identity and Services Exam Guide MS-100 by Aaron Guilmette(5105)
Kotlin in Action by Dmitry Jemerov(5097)
Microsoft Cybersecurity Architect Exam Ref SC-100 by Dwayne Natwick(4682)
Combating Crime on the Dark Web by Nearchos Nearchou(4675)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4440)
The Ruby Workshop by Akshat Paul Peter Philips Dániel Szabó and Cheyne Wallace(4368)
The Age of Surveillance Capitalism by Shoshana Zuboff(3990)
Python for Security and Networking - Third Edition by José Manuel Ortega(3920)
Learn Wireshark by Lisa Bock(3594)
The Ultimate Docker Container Book by Schenker Gabriel N.;(3585)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3531)
Mastering Python for Networking and Security by José Manuel Ortega(3378)
Mastering Azure Security by Mustafa Toroman and Tom Janetscheck(3364)
Blockchain Basics by Daniel Drescher(3332)
